<include file="public@header" />
<style>
    .label {
        cursor: pointer;
    }

    .tips {
        display: none;
        position: fixed;
        top: 40%;
        left: 40%;
        min-width: 200px;
        max-width: 700px;
        transform: translate(-50%, -50%);
        z-index: 99999;
        text-align: center;
        padding: 15px;
        border-radius: 5px;
        color: black;
        background-color: #f2dede;
        border-color: #d6e9c6;
    }

    .edits {
        cursor: pointer;
        color: coral;
    }
</style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInUp js-check-wrap">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>激活码类别列表</h5>
                        <div class="ibox-tools">
                            <a href="#" class="btn btn-primary btn-xs active">激活码类别列表</a>
                            <a href="{:url('cdkey/addcategory')}" class="btn btn-primary btn-xs">添加类别</a>
                        </div>
                    </div>


                    <div class="ibox-content">
                        <div class="tips"></div><!-- 提示框 -->
                        <form class="js-ajax-form" action="{:url('Shop/listorderss')}" method="post">
                            <div class="table-actions">
                            </div>
                            <table class="table table-hover" id="menus-table">
                                <thead>
                                    <tr>
                                        <th width="40">ID</th>
                                        <th>名称</th>
                                        <th>有效期</th>
                                        <th>创建时间</th>
                                        <th>价格(USTD)</th>
                                        <th width="150">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <eq name="datas" value="">
                                        <tr>
                                            <td colspan="5" style="text-align: center">暂无数据</td>
                                        </tr>
                                        <else />
                                        <foreach name="datas" item="vo">
                                            <tr>
                                                <td>{$vo.id}</td>
                                                <td>{$vo.title}</td>
                                                <td>{$vo.term}</td>
                                                <td>{$vo.create_at|date="Y-m-d H:i",###} </td>
                                                <td>{$vo.price}</td>
                                                <td>
                                                    <a href="{:url('cdkey/editcategory',['id'=> $vo.id  ]  )}">修改</a> |
                                                    <a href="{:url('cdkey/delcategory',['id'=> $vo.id  ]  )}" class="js-ajax-delete">删除</a>
                                            </tr>
                                        </foreach>
                                    </eq>
                                </tbody>
                            </table>
                    </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>

</html>